package com.shiroa.mapper;

import com.shiroa.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2023-05-15
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getByUserId(Long userId);

    List<SysRole> getAllByUsername(String username);
}
